//
//  KlockTextfield.m
//  Hema
//
//  Created by Jeamine on 16/2/15.
//  Copyright © 2016年 Hemaapp. All rights reserved.
//

#import "KlockTextfield.h"
#import "Masonry.h"
#import "HemaFunction.h"
#import "HemaConst.h"

@implementation KlockTextfield
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 20)];
        self.leftView =leftView;
//        [leftView mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.left.equalTo(self);
//            make.top.equalTo(self);
//            make.bottom.equalTo(self);
//            make.width.mas_equalTo(@20);
//        }];
        self.leftViewMode = UITextFieldViewModeAlways;
        self.textColor = [UIColor grayColor];
        self.font = [UIFont systemFontOfSize:15.0];
        self.textAlignment = NSTextAlignmentLeft;
        self.clearButtonMode = UITextFieldViewModeWhileEditing;
        self.returnKeyType = UIReturnKeyDone;
        [HemaFunction addbordertoView:self radius:5.f width:1.f color:BB_lineColor];
        self.backgroundColor = BB_White_Color;

    }
    return self;
}
@end
